package com.zy.dp.iterator.example2;

import java.util.List;

public class Client2
{
	public static void main(String[] args)
	{

		PayManager payManager = new PayManager();
		payManager.calcPay();
		List<PayModel> payList = payManager.getPayList();
		for (PayModel payModel : payList)
		{
			System.out.println(payModel);
		}

		SalaryManager salaryManager = new SalaryManager();
		salaryManager.calcSalary();
		PayModel[] pms = salaryManager.getPays();
		for (PayModel payModel : pms)
		{
			System.out.println(payModel);
		}

	}
}
